import Vue from 'vue'
import Router from 'vue-router'
import ArticleCreate from '@/components/ArticleCreate'
import ArticleList from '@/components/ArticleList'
import ArticleModel from '@/components/ArticleModel'
import ArticleEdit from '@/components/ArticleEdit'




Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/articles/index'
    },
    {
      path: '/articles/index',
      component: ArticleList
    },
    {
      path: '/articles/create',
      component: ArticleCreate
    },
    {
      path: '/articles/:id/edit',
      component: ArticleEdit
    }
  ]
})
